/*
 * @Description:
 * @Author: Richeneen
 * @Date: 2022-10-15 22:00:41
 * @LastEditTime: 2022-10-25 17:04:18
 * @LastEditors: liqi
 */
import { queryArticleList } from '@/api/article'
export default {
  namespaced: true,
  state: {
    articleList: []
  },
  mutations: {
    SET_ARTICLELIST(state, payload) {
      state.articleList = payload
    }
  },
  actions: {
    async queryArticleList({ commit }, params) {
      const res = await queryArticleList(params);
      commit('SET_ARTICLELIST', res.data)
    }
  }
}
